import './App.css';
import MyLayout from "./components/MyLayout";
import {Route} from "react-router-dom";
import Dashboard from "./pages/Dashboard";
import {Routes} from "react-router";
import Users from "./pages/Users";
import ArticleCategories from "./pages/articles/ArticlesCategories";
import MedicineCategories from "./pages/medicine/MedicineCategories";
import ArticleList from "./pages/articles/ArticlesList";
import MedicineList from "./pages/medicine/MedicineList";

function App() {
  return (
      <MyLayout>
        <Routes>
            <Route path={'users'} element={<Users/>}></Route>
            <Route path={'medicine/categories'} element={<MedicineCategories/>}></Route>
            <Route path={'medicine/list'} element={<MedicineList/>}></Route>
            <Route path={'article/categories'} element={<ArticleCategories/>}></Route>
            <Route path={'article/list'} element={<ArticleList/>}></Route>
            <Route path={'dashboard'} element={<Dashboard/>}></Route>
        </Routes>
      </MyLayout>
  );
}

export default App;
